package com.art.sunflower.service;


import com.art.sunflower.exception.NullWorkException;
import com.art.sunflower.pojo.Work;
import com.art.sunflower.util.MyPageInfo;

import java.util.List;
import java.util.Map;

public interface WorkService {
    int insertWork(Work work);

    int updateWork(Work work);

    int deleteWork(int id);

    Work selectOneWork(int id);

    MyPageInfo listAllWork(Integer pageSize, Integer pageNo) throws NullWorkException;

    int updateRank(int id, boolean rank);

    int selectTea(int id);

    List<Map<String, Object>> getAllWork();
}
